import request from '@/utils/request_zc'

export function getSaleDeliveryList ({
  deliveryNo,
  contractNo,
  customerId,
  outboundStatus,
  deliveryStartDate,
  deliveryEndDate,
  deliveryStatus,
  createStartTime,
  createEndTime,
  page, limit }) {
  return request({
    url: '/scm/sales/delivery/list',
    method: 'get',
    params: {
      deliveryNo,
      contractNo,
      customerId,
      deliveryStartDate,
      outboundStatus,
      deliveryEndDate,
      deliveryStatus,
      createStartTime,
      createEndTime,
      page,
      limit
    }
  })
}

export function editSaleDeliveryList ({
  deliveryMethod,
  deliveryDate,
  deliveryAddress,
  contact,
  phone,
  remark,
  id
}) {
  return request({
    url: '/scm/sales/delivery/edit',
    method: 'post',
    data: {
      deliveryMethod,
      deliveryDate,
      deliveryAddress,
      contact,
      phone,
      remark,
      id
    }
  })
}


export function delSaleDeliveryList ({ ids }) {
  return request({
    url: '/scm/sales/delivery/del',
    method: 'post',
    data: {
      ids
    }
  })
}
